#!/bin/bash
function file_test()
{
   for((i=0;i<=7;i++));
    do
     echo `date` >> outsh.txt;
     sleep 1
    done
   echo "end cycle" >> outsh.txt;
}

file_test;
